const Service = require('egg').Service;

class StudentService extends Service {
  async getStudentList() {
    // 查询数据
    try {
        const studentList = await this.app.model.Student.findAll() 
        return studentList
    } catch (e) {
        return null;
    }
  }
}

module.exports = StudentService;